<?php

namespace Dao\Queue;
/**
 * @method bool pushFile(array $msg_body)
 * @method array popFile()
 * @method bool pushTime(array $msg_body)
 * @method array popTime()
 * @method bool pushLogin(array $msg_body)
 * @method array popLogin()
 * @method bool pushLogout(array $msg_body)
 * @method array popLogout()
 **/
class Netease extends \Dao\Queue {
    protected $pool_type = 'redis';
    protected $pool_name = 'common';
    const CALLBACK_FILE = "CALLBACK_FILE"; //录制会文件回调队列
    const CALLBACK_TIME = "CALLBACK_TIME"; //时长回调队列
    const CALLBACK_LOGIN = "CALLBACK_LOGIN"; //登录回调队列
    const CALLBACK_LOGOUT = "CALLBACK_LOGOUT"; //登出回调队列

    public function __construct() {
        $this->setConfig('File', self::CALLBACK_FILE);
        $this->setConfig('Time', self::CALLBACK_TIME);
        $this->setConfig('Login', self::CALLBACK_LOGIN);
        $this->setConfig('Logout', self::CALLBACK_LOGOUT);
    }
}